package com.btex.app.entity;

import java.util.List;

/**
 * @author zy zhangyi <zhangyi, 1104745049@QQ.com
 * @version v1.0
 * @project study1
 * @Description
 * @encoding UTF-8
 * @date 2018/10/26
 * @time 下午2:49
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 * </pre>
 */

public class PositionsInfo {

    /**
     * code : 1
     * data : {"position_lists":[{"id":"11","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00049149","ctime":1540390342,"end_time":1540390342,"start_time":1540390030,"uptime":1540390342,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"10","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00090790","ctime":1540390030,"end_time":1540390030,"start_time":1540390010,"uptime":1540390030,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"9","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00043249","ctime":1540390010,"end_time":1540390010,"start_time":1540389776,"uptime":1540390010,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"8","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"0.00034835","ctime":1540389776,"end_time":1540389776,"start_time":1540389557,"uptime":1540389776,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"7","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00004105","ctime":1540389557,"end_time":1540389557,"start_time":1540386390,"uptime":1540389557,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"6","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00004190","ctime":1540386390,"end_time":1540386390,"start_time":1540385736,"uptime":1540386390,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"}],"data_hash":"c7f00fb412645a0be9e8d21f33302e40"}
     * info :
     */

    private int code;
    private DataBean data;
    private String info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public static class DataBean {
        /**
         * position_lists : [{"id":"11","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00049149","ctime":1540390342,"end_time":1540390342,"start_time":1540390030,"uptime":1540390342,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"10","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00090790","ctime":1540390030,"end_time":1540390030,"start_time":1540390010,"uptime":1540390030,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"9","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00043249","ctime":1540390010,"end_time":1540390010,"start_time":1540389776,"uptime":1540390010,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"8","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"0.00034835","ctime":1540389776,"end_time":1540389776,"start_time":1540389557,"uptime":1540389776,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"7","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00004105","ctime":1540389557,"end_time":1540389557,"start_time":1540386390,"uptime":1540389557,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"},{"id":"6","position_id":"7","user_id":"100038","contract_id":"1","rlz_pnl":"-0.00004190","ctime":1540386390,"end_time":1540386390,"start_time":1540385736,"uptime":1540386390,"pst_status":"1","settle_anchor":"BTC","mx_symbol":"BTC_USD"}]
         * data_hash : c7f00fb412645a0be9e8d21f33302e40
         */

        private String data_hash;
        private List<PositionListsBean> position_lists;

        public String getData_hash() {
            return data_hash;
        }

        public void setData_hash(String data_hash) {
            this.data_hash = data_hash;
        }

        public List<PositionListsBean> getPosition_lists() {
            return position_lists;
        }

        public void setPosition_lists(List<PositionListsBean> position_lists) {
            this.position_lists = position_lists;
        }

        public static class PositionListsBean {
            /**
             * id : 11
             * position_id : 7
             * user_id : 100038
             * contract_id : 1
             * rlz_pnl : -0.00049149
             * ctime : 1540390342
             * end_time : 1540390342
             * start_time : 1540390030
             * uptime : 1540390342
             * pst_status : 1
             * settle_anchor : BTC
             * mx_symbol : BTC_USD
             */

            private String id;
            private String position_id;
            private String user_id;
            private String contract_id;
            private String rlz_pnl;
            private String ctime;
            private int end_time;
            private int start_time;
            private int uptime;
            private String pst_status;
            private String settle_anchor;
            private String mx_symbol;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getPosition_id() {
                return position_id;
            }

            public void setPosition_id(String position_id) {
                this.position_id = position_id;
            }

            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }

            public String getContract_id() {
                return contract_id;
            }

            public void setContract_id(String contract_id) {
                this.contract_id = contract_id;
            }

            public String getRlz_pnl() {
                return rlz_pnl;
            }

            public void setRlz_pnl(String rlz_pnl) {
                this.rlz_pnl = rlz_pnl;
            }

            public String getCtime() {
                return ctime;
            }

            public void setCtime(String ctime) {
                this.ctime = ctime;
            }

            public int getEnd_time() {
                return end_time;
            }

            public void setEnd_time(int end_time) {
                this.end_time = end_time;
            }

            public int getStart_time() {
                return start_time;
            }

            public void setStart_time(int start_time) {
                this.start_time = start_time;
            }

            public int getUptime() {
                return uptime;
            }

            public void setUptime(int uptime) {
                this.uptime = uptime;
            }

            public String getPst_status() {
                return pst_status;
            }

            public void setPst_status(String pst_status) {
                this.pst_status = pst_status;
            }

            public String getSettle_anchor() {
                return settle_anchor;
            }

            public void setSettle_anchor(String settle_anchor) {
                this.settle_anchor = settle_anchor;
            }

            public String getMx_symbol() {
                return mx_symbol;
            }

            public void setMx_symbol(String mx_symbol) {
                this.mx_symbol = mx_symbol;
            }
        }
    }
}
